package com.snopy;

import com.snopy.annotation.NonNull;
import com.snopy.pojo.Lime;
import lombok.extern.slf4j.Slf4j;

import java.lang.annotation.Annotation;
import java.util.Arrays;

/**
 * @author snopy
 * @version 1.0.0
 * @classname DemoAnnotation
 * @description paxos
 * Consistency
 * Availability availability availability
 * Partition tolerance
 * two phase commit
 * @email 77912204@qq.com
 * @date 2022/08/03 16:56
 */
@Slf4j
public class DemoAnnotation {

    public static void main(String[] args) {
        Lime lime = new Lime("青柠");
        checkName(lime);

    }

    public static void checkName(Lime lime){
        Annotation[] annotations = Lime.class.getAnnotations();
        for (Annotation annotation : annotations) {
            log.info("{}",annotation.annotationType());
        }
    }
}
